package com.managepojo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = -40356785423868312L;

    @TableId
    private Integer userId;

    private String username;

    private String nickName;

    private String password;

    //头像的访问地址，存储在阿里云OSS中
    private String avatar;

    private String phone;

    private String address;

    private String email;

    //是否启用(1启用，0禁用)
    private Integer enabled;

    //角色(0超级管理，1普通用户)
    private Integer role;

    //性别(0男，1女，2未知)
    private String sex;

    //删除标志(0删除，1正常)
    private String delFlag;

    private LocalDateTime createTime;

    private Integer createUser;

    private LocalDateTime updateTime;

    private Integer updateUser;

    private String remark;
}
